package org.ank.food;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class InfoActivity extends Activity{
	
	Button backButton;
	TextView textView;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.info_activity);
        textView = (TextView)findViewById(R.id.info_textview);
        textView.setVerticalScrollBarEnabled(true);
        textView.append("\n\n");
        textView.append(getString(R.string.launch_online_manual));
//        textView.append("\n");
//        textView.append(getString(R.string.man_adress));
        
        backButton = (Button)findViewById(R.id.info_back_button);
        backButton.setOnClickListener(new Button.OnClickListener(){
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent();
        		intent.setClass(getApplicationContext(), ProfileChooseActivity.class);
        		startActivity(intent);
        		finish();
			}
        });
	}
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if (keyCode == KeyEvent.KEYCODE_BACK) {
			Intent intent = new Intent();
			intent.setClass(getApplicationContext(), ProfileChooseActivity.class);
			startActivity(intent);
			finish();
		}
	    return super.onKeyDown(keyCode, event);
	}

}
